// components/dialog-team-open/dialog-team-open.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    showTeam: false,
    exchangeChecked: false,
    showConfirm: false,
    confirmChecked: false,
    ticketChecked: false,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    show(props = {}) {
      this.setData({ showTeam: true, ...props })
    },
    close() {
      this.setData({ showTeam: false })
    },
    handleShowConfirm() {
      this.setData({ showConfirm: true })
    },
    // 同意协议
    handleExchangeCheckCHange(event) {
      this.setData({ exchangeChecked: event.detail })
    },
    handleConfirmCheckCHange(event) {
      this.setData({ confirmChecked: event.detail })
    },
    // 券选择
    handleTicketCheckedCHange(event) {
      this.setData({ ticketChecked: event.detail })
    },
    closeConfrim() {
      this.setData({ showConfirm: false })
    },
    handleConfirm() {
      this.closeConfrim()
    }
  }
})